package com.auto.finance.auth.collect.support.handles;

import org.springframework.web.bind.annotation.PutMapping;

import java.lang.annotation.Annotation;

/**
 * @author tianye
 */
public class PutMappingPathHandle extends AbstractRequestPathHandle {
    @Override
    protected String[] getPaths(Annotation annotation) {
        return ((PutMapping) annotation).value();
    }

    @Override
    protected String[] getMethod(Annotation annotation) {
        return new String[]{"PUT"};
    }

    @Override
    public boolean support(Annotation annotation) {
        return annotation instanceof PutMapping;
    }
}
